<template>
  <div id="app">
    <router-view v-if="isRouterAlive"/>
  </div>
</template>

<script>
export default {
  name: 'App',
  provide(){
    return {
      reload:this.reload
    }
  },
  data(){
    return {
      isRouterAlive:true
    }
  },
  methods:{
    reload(){
      this.isRouterAlive = false;
      this.$nextTick(() => {
        this.isRouterAlive = true
      })
    }
  }
}
</script>

<style>


#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #484a4d;
  /* background:  #b6bbbb21; */
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
}

#app form{
  text-align: left;
}


.el-form-item {
    margin-bottom: 10px;
}

/* element ui 主色调设置 */
.el-button--primary {
  color: #FFF;
  background-color: #4e738d;
  border-color: #4e738d;
}
.el-button--primary:hover {
  color: #FFF;
  background-color: #2f4554;
  border-color: #2f4554;
}
.el-button--primary:visited {
  color: #FFF;
  background-color: #2f4554;
  border-color: #2f4554;
}
.el-button--primary:active {
  color: #FFF;
  background-color: #2f4554;
  border-color: #2f4554;
}
.el-button--primary:focus {
  color: #FFF;
  background-color: #2f4554;
  border-color: #2f4554;
}
.el-button--text {
    color: #4e738d;
}
.el-button--primary.is-plain {
  color: #fff;
  background: #4e738d;
  border-color: #4e738d;
}
.el-button--primary.is-plain:hover {
  color: #fff;
  background: #2f4554;
  border-color: #2f4554;
}

.el-button--danger {
  color: #FFF;
  background-color: #F25454;
  border-color: #F25454;
}

.el-button--success {
  color: #FFF;
  background-color: #2796F8;
  border-color: #2796F8;
}

/* 分页 */
.el-pager li.active {
  color: #2f4554;
  cursor: default;
}
.el-pager li:hover {
  color: #4e738d;
  cursor: default;
}

/* 菜单导航 */
.el-tabs__item.is-active {
  color: #4e738d;
}
.el-tabs__item:hover {
  color: #4e738d;
}

/* 单选框部分 */
.el-radio__input.is-checked .el-radio__inner {
  border-color: #4e738d;
  background: #4e738d;
}
.el-radio__input.is-checked+.el-radio__label {
  color: #4e738d;
}

/* 复选框部分 */
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #2f4554;
  border-color: #2f4554;
}
</style>
